import re,os
import subprocess
import time
import shutil
from datetime import datetime
from utils.commonUtil import send_email 

print("Hello data collection")



s = "/item/少林寺/2254961"

obj = re.compile("\/item\/.*")

s = "all-game-txt  desc-game"
obj = re.compile("all-game-txt")
matchObj = obj.match(s)
print('---match',matchObj,matchObj.span(),matchObj.groups(),matchObj.group(0))

s = "id=1,title='hhh',"

print(s[:-1])

arr = []
arr.extend(['a','b','c'])

print(arr,len("aaa"),time.time(),"宏观")

cmd = "start C:\Program Files\Sublime Text 3\sublime_text.exe"

#print(os.system(cmd))

#subprocess.Popen()
os.path.exists

aa = [10,20,30]
print("aa11",aa.pop(0))
print("aa22",aa)

src="D:/zhh/imgs/0_1.jpg"

print("www",os.path.split(src),os.path.splitext(src),os.path.basename(src))

import sys
print(sys.getrecursionlimit())

ft = ['JPG','PNG','']

p = "PNG"
if p in ft:
    print("YES!!",datetime.now())

send_email("python email alert ","test python email")



